﻿using System;
using System.Collections.Generic;
using System.Text;
using WeatherTest.Base;

namespace WeatherTest
{
    public class ThirdPartyDisplay : IDisplayElement, IObserver
    {
        private float _temp, _humidity, _pressure;
        public void Display()
        {
            //throw new NotImplementedException();
            //Console.WriteLine($"当前气象：{_temp}℃，{_humidity}% 湿度");
            Console.WriteLine("天下第九，有我无他");
        }

        public void Update(float temp, float humidity, float pressure)
        {
            _temp = temp;
            _humidity = humidity;
            _pressure = pressure;
            Display();
            //throw new NotImplementedException();
        }
    }
}
